/**
 * ExtDirect4Java
 * @author Steve Jacot-Guillarmod
 * @version 0.1-alpha
 *
 * Copyright(c) 2009, Swissdotnet S�rl
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 */
package ch.swissdotnet.extdirect4j;

import java.lang.reflect.Method;

class ExtDirectMethod extends RemoteObject {
    private final Method method;

    ExtDirectMethod(final String remoteName, final Method method) {
        super(remoteName);
        this.method = method;
    }

    ExtDirectMethod(final Method method) {
        super(method.getName());
        this.method = method;
    }

    Method getMethod() {
        return method;
    }
}
